package cn.uce.cc.srv.client;

import com.ymdd.dorado.kernel.configuration.DubboOpenFeign;
import com.ymdd.dorado.kernel.configuration.OpenFeign;
import com.ymdd.dorado.kernel.vo.DubbGwFeignRequest;
import feign.Headers;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.Map;

@FeignClient(value = "woCustSerClient", url = "${ics.url}" , configuration = DubboOpenFeign.class)
public interface WoCustSerClient {

    @RequestLine("POST /api/icreatewoserorderbiz")
    @Headers("Content-Type: application/json")
    int checkSameCsWoCustSer(DubbGwFeignRequest request);

    @RequestLine("POST /api/icreatewoserorderbiz")
    @Headers("Content-Type: application/json")
    int checkCanCreate(DubbGwFeignRequest request);

    @RequestLine("POST /api/icreatewoserorderbiz")
    @Headers("Content-Type: application/json")
    int checkRequireWayBillNum(DubbGwFeignRequest request);

    @RequestLine("POST /api/icreatewoserorderbiz")
    @Headers("Content-Type: application/json")
    int checkManualSelMechanism(DubbGwFeignRequest request);

    @RequestLine("POST /api/icreatewoserorderbiz")
    @Headers("Content-Type: application/json")
    Map<String, Object> getFirstNodeDealOrg(DubbGwFeignRequest request);

    @RequestLine("POST /api/icreatewoserorderbiz")
    @Headers("Content-Type: application/json")
    Map<String, Object> createOrderFromCallCenter(DubbGwFeignRequest request);
}
